<%= form_with(model: order, local: true) do |form| %>
  <% if order.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(order.errors.count, "error") %> prohibited this order from being saved:</h2>

      <ul>
      <% order.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= form.label :order_no %>
    <%= form.text_field :order_no %>
  </div>

  <div class="field">
    <%= form.label :hotel_id %>
    <%= form.number_field :hotel_id %>
  </div>

  <div class="field">
    <%= form.label :phone %>
    <%= form.text_field :phone %>
  </div>

  <div class="field">
    <%= form.label :room_no %>
    <%= form.text_field :room_no %>
  </div>

  <div class="actions">
    <%= form.submit %>
  </div>
<% end %>
